﻿using Ideaa.Data.Models;
using Microsoft.AspNet.Identity.EntityFramework;
using System.Collections.Generic;

namespace Ideaa.Data.Models
{
    public class User : IdentityUser
    {
        private ICollection<Idea> ideas;
        private ICollection<Suggestion> suggestions;
        private ICollection<Vote> votes;

        public User()
        {
            this.Ideas = new HashSet<Idea>();
            this.Suggestions = new HashSet<Suggestion>();
            this.Votes = new HashSet<Vote>();
        }

        public virtual ICollection<Idea> Ideas
        {
            get
            {
                return this.ideas;
            }
            protected set
            {
                this.ideas = value;
            }
        }

        public virtual ICollection<Suggestion> Suggestions
        {
            get
            {
                return this.suggestions;
            }
            protected set
            {
                this.suggestions = value;
            }
        }

        public virtual ICollection<Vote> Votes
        {
            get
            {
                return this.votes;
            }
            protected set
            {
                this.votes = value;
            }
        }
    }
}